//
//  StylistDetailIdeabookCollectionViewCell.m
//  MyDIYHouse
//
//  Created by dlios on 15-7-1.
//  Copyright (c) 2015年 李平洋. All rights reserved.
//

#import "StylistDetailIdeabookCollectionViewCell.h"

@implementation StylistDetailIdeabookCollectionViewCell

- (void)dealloc
{
    [self.myImageView release];
    [self.titleLabel release];
    [self.numberLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
   
        //对imageView和label进行创建
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, self.contentView.frame.size.width-20, self.contentView.frame.size.width-20)];
        [self.contentView addSubview:self.myImageView];
        [self.myImageView release];
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, self.contentView.frame.size.width, self.contentView.frame.size.width-20, self.contentView.frame.size.width/6)];
        [self.contentView addSubview:self.titleLabel];
        [self.titleLabel release];
        
        self.numberLabel =[[UILabel alloc] initWithFrame:CGRectMake(10, self.contentView.frame.size.width/6*7, self.contentView.frame.size.width-20, self.contentView.frame.size.width/6)];
        [self.contentView addSubview:self.numberLabel];
        [self.numberLabel release];
        
    }
    return self;
}

@end
